Builder

class Builder

Constructors

Builder
Link copied to clipboard
open fun Builder()

Functions

acceptExpired
Link copied to clipboard
open fun acceptExpired(acceptExpired: Boolean): StylePackLoadOptions.Builder
Accepts expired data when loading style resources.This flag should be set to true to accept expired responses.
build
Link copied to clipboard
open fun build(): StylePackLoadOptions
glyphsRasterizationMode
Link copied to clipboard
open fun glyphsRasterizationMode(@Nullable() glyphsRasterizationMode: GlyphsRasterizationMode): StylePackLoadOptions.Builder
Specifies glyphs rasterization mode.If provided, updates the style package's glyphs rasterization mode,which defines which glyphs will be loaded from the server.By default, ideographs are rasterized locally and other glyphs are loadedfrom network (i.e.
metadata
Link copied to clipboard
open fun metadata(@Nullable() metadata: Value): StylePackLoadOptions.Builder
A custom Mapbox value associated with this style package for storing metadata.If provided, the custom value value will be stored alongside the style package.